package com.crm.common.model.Enum.csd;

/**
 * @author yincuimei
 * @Date 2021/8/19 15:37
 */
public enum CustomerDataStatusEnum {
    //数据状态(客户表chs_customer)
    MEMBER_ERROR_DATA_RIGHT(0,"正确数据"),
    MEMBER_ERROR_DATA_ERROR(1,"错误数据"),
    MEMBER_ERROR_DATA_LOCK(2,"锁定数据");
    private Integer code;
    private String message;

    CustomerDataStatusEnum(Integer code,String message) {
        this.code = code;
        this.message = message;
    }

    public static String getMessage(Integer code) {
        for (CustomerDataStatusEnum customerDataStatusEnum : values()) {
            if(customerDataStatusEnum.code == code){
                return customerDataStatusEnum.message;
            }
        }
        return "";
    }
}
